-- GENERATED SPELL FOR [Blackpaw Shaman] --


function spell0_16337(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(28902,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16337', 10314, 1)
end

function spell1_16337(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(20802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16337', 3000, 1)
end

function Sorts_16337(pUnit, Event)
local choix_sorts_16337 = math.random(0, 1)
if choix_sorts_16337 == 0 then
pUnit:RegisterEvent('spell0_16337', 1, 1)
end
if choix_sorts_16337 == 1 then
pUnit:RegisterEvent('spell1_16337', 1, 1)
end
end

function mob16337_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16337', math.random(1500, 3000), 1)
end

function mob16337_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16337_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16337_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16337, 1, 'mob16337_Action')
RegisterUnitEvent(16337, 2, 'mob16337_Leave')
RegisterUnitEvent(16337, 3, 'mob16337_Kill')
RegisterUnitEvent(16337, 4, 'mob16337_Die')
